<?php

class Create_Jijaf_Groups {

	/**
	 * Make changes to the database.
	 *
	 * @return void
	 */
	public function up()
    {
        // Create table jijaf_groups
        Schema::create('jijaf_groups', function($table) {
            $table->increments('id');
            $table->string('groupname', 64);
            $table->string('groupdescription', 128);
            $table->timestamps();
        });

        // Add initial data to jijaf_groups
        DB::table('jijaf_groups')->insert(array(
            'groupname'         => 'admins',
            'groupdescription'  => 'jijaf administrators',
        ));
	}

	/**
	 * Revert the changes to the database.
	 *
	 * @return void
	 */
	public function down()
	{
        // Drop table jijaf_groups
        Schema::drop('jijaf_groups');
	}

}
